package com.headFirstModel.factoryPattern.abstractFactory.ny;

import com.headFirstModel.factoryPattern.abstractFactory.Pizza;
import com.headFirstModel.factoryPattern.abstractFactory.PizzaIngredientFactory;

/**
 * 蔬菜披萨
 */
public class NYVeggiePizza extends Pizza {
    PizzaIngredientFactory ingredientFactory;

    public NYVeggiePizza(PizzaIngredientFactory ingredientFactory){
        this.ingredientFactory=ingredientFactory;
    }

    @Override
    public void prepare() {
        System.out.println("纽约蔬菜披萨生产中...");
        dough=ingredientFactory.createDough();
        dough.createDough();
    }

    @Override
    public void bake() {
        System.out.println("纽约蔬菜披萨烘烤中...");
    }

    @Override
    public void cut() {
        System.out.println("纽约蔬菜披萨切割中...");
    }

    @Override
    public void box() {
        System.out.println("纽约蔬菜披萨包装中...");
    }
}
